﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="krj_tracking_detail.aspx.cs" Inherits="krj_tracking_detail" %>
<%@ PreviousPageType VirtualPath="~/Management/Tracking/krj_tracking.aspx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <script src="../../Scripts/bas_error.js"></script>
    <script src="../../Scripts/GridDataBind.js"></script>
    <script src="../../Scripts/scroll.js"></script>
    <script src="Scripts/krj_tracking_detail.js"></script>
    <style type="text/css">
    /* 強制回應彈出式方塊的可拖曳處 */
    .cssDragHandler
    {
        background-color: #ffffff;
        /*color: #363636;*/
        text-align: center;
        border: 5px double #fff;
        cursor: move;
        font-weight: bolder;
        font-size: 15pt;
    }
    /* 於顯示「強制回應彈出式方塊」時，背景項目所用的樣式 */
    .modalBackground
    {
        /*background-color: #808080;*/
        filter: alpha(opacity=60);
        opacity: 0.60;
    }
    /* 強制回應彈出式對話方塊所用的樣式 */
    .cssModalPopup
    {
        background-color: #ffffff;
        border-width: 3px;
        border-style: solid;
        /*border-color: Gray;*/
        padding: 3px;
        /*color: #AFA500;*/
    }
     .modalPopup {
         background-color:#ffffff;
         border-width:3px;
         border-style:solid;
         /*border-color:Gray;*/
         padding:3px;
         width:350px;
     }
     .modalBackground {
         /*background-color:Gray;*/
         filter:alpha(opacity=70);
         opacity:0.7;
     }
     
     
    .cssModalPopup panel 
    {
        position: absolute;
        top: 50%;
        left:50%;
    }
    </style>
    
    <asp:Button ID="btn_exist" runat="server" CausesValidation="false" PostBackUrl="~/Management/Tracking/krj_tracking.aspx" CssClass="btn_opration" Text="離開" />
  <asp:Label ID="lbl_message" runat="server" EnableViewState="False" ForeColor="Red"></asp:Label>
  <br />
  <asp:Panel ID="PanelDetail" runat="server">
      <ajaxToolkit:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0" OnClientActiveTabChanged="GetTab" CssClass="Tab" >

          <ajaxToolkit:TabPanel runat="server" HeaderText="發到整合明細 " ID="TabPanel5" TabIndex="0">
              <ContentTemplate>
                  <table class="DetailTable">
                      <tr>
                          <th colspan="8"><asp:Label ID="lblTitle" runat="server" Text="發到整合明細"/><asp:Label ID="lblSTATS" runat="server" ForeColor="Red"/> </th>
                      </tr>
                      <tr>
                          <td>明細單號:</td>
                          <td>
                              <asp:Label ID="lblDetail_NO" runat="server" ForeColor="Red" />
                              <asp:Label ID="lblITEM_NO" runat="server"  ForeColor="Red" />
                              <asp:HiddenField ID="hidDetail_NO" runat="server" />
                              <asp:HiddenField ID="hidITEM_NO" runat="server" />
                              <asp:HiddenField ID="hidCORRECT_NO" runat="server" />
                              <asp:HiddenField ID="hidORG_SHIPPING_NO" runat="server" />
                              <asp:HiddenField ID="hidHistory" runat="server" />
                          </td>

                          <td>銷卡:</td>
                          <td>
                              <asp:Label ID="lblCANCEL" runat="server"  /></td>
                          <td>存庫:</td>
                          <td colspan="3">
                              <asp:Label ID="lblSTOCK" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>發送日:</td>
                          <td>
                              <asp:Label ID="lblDISPATCH_DATE" runat="server"  /></td>

                          <td>到著日:</td>
                          <td>
                              <asp:Label ID="lblRECEIVED_DATE" runat="server"  /></td>
                          <td>出貨單號:</td>
                          <td colspan="3">
                              <asp:Label ID="lblDelivery_Note" runat="server"/></td>
                      </tr>
                      <tr>
                          <td>發送站:</td>
                          <td>
                              <asp:Label ID="lblDISPATCH_DEPT" runat="server" /></td>

                          <td>到著站:</td>
                          <td>
                              <asp:Label ID="lblRECEIVED_DEPT" runat="server" /></td>
                          <td>更正日:</td>
                          <td colspan="3">
                              <asp:Label ID="lblCORRECT_DATE" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>託運單號:</td>
                          <td>
                              <asp:Label ID="lblSHIPPING_NO_1" runat="server"  /></td>

                          <td>付款人編號:</td>
                          <td>
                              <asp:Label ID="lblPAYMENT_NO_1" runat="server"  /></td>
                          <td>更正單號:</td>
                          <td colspan="3">
                              <asp:Label ID="lblCORRECT_NO" runat="server" /></td>
                      </tr>
                      <tr>
                          <td>託運人:</td>
                          <td>
                              <asp:Label ID="lblSHIPPER" runat="server"  /></td>

                          <td>收貨人:</td>
                          <td>
                              <asp:Label ID="lblRECEIVER" runat="server"  /></td>
                          <td>更正後站所:</td>
                          <td colspan="3">
                              <asp:Label ID="lblCORRECT_DEPT" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>原訂代收款:</td>
                          <td>
                              <asp:Label ID="lblORG_PAYMENT" runat="server"  /></td>

                          <td>指送時段:</td>
                          <td>
                              <asp:Label ID="lblSPECIFIED_SECTIONS" runat="server"  /></td>
                          <td>指送日期:</td>
                          <td colspan="3">
                              <asp:Label ID="lblSPECIFIED_DATE" runat="server" /></td>
                      </tr>
                      <tr>
                          <td style="width:10%">行銷專案:</td>
                          <td style="width:15%">
                              <asp:Label ID="lblPROJECT" runat="server"  /></td>

                          <td style="width:10%">支付:</td>
                          <td style="width:15%">
                              <asp:Label ID="lblPAYMENT" runat="server"  /></td>
                          <td style="width:10%">運費:</td>
                          <td style="width:15%">
                              <asp:Label ID="lblSHIPPING_AMOUNT" runat="server" /></td>
                          <td style="width:10%">報值費:</td>
                          <td style="width:15%">
                              <asp:Label ID="lblPAY_AMOUNT" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>件數:</td>
                          <td>
                              <asp:Label ID="lblITEM_COUNT" runat="server"  /></td>

                          <td>運選碼:</td>
                          <td>
                              <asp:Label ID="lblTRANS_CODE" runat="server" /></td>
                          <td>接費:</td>
                          <td>
                              <asp:Label ID="lblPAY1" runat="server"  /></td>
                          <td>挽工費:</td>
                          <td>
                              <asp:Label ID="lblPAY2" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>重量:</td>
                          <td>
                              <asp:Label ID="lblWEIGHT" runat="server"  /></td>

                          <td>報值額:</td>
                          <td>
                              <asp:Label ID="lblAMOUNT1" runat="server" /></td>
                          <td>送費:</td>
                          <td>
                              <asp:Label ID="lblAMOUNT2" runat="server" /></td>
                          <td>特服費:</td>
                          <td>
                              <asp:Label ID="lblAMOUNT3" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>才數:</td>
                          <td>
                              <asp:Label ID="lblCubic" runat="server"  /></td>

                          <td>特服碼:</td>
                          <td>
                              <asp:Label ID="lblCODE1" runat="server"  /></td>
                          <td>代款:</td>
                          <td>
                              <asp:Label ID="lblAMOUNT4" runat="server" /></td>
                          <td>小計:</td>
                          <td>
                              <asp:Label ID="lblAMOUNT5" runat="server" ToolTip="運費+接費+接捆工費+送費+送捆工費+代款+報值費+特服費+假日費"    /></td>
                      </tr>
                      <tr>
                          <td>加成:</td>
                          <td>
                              <asp:Label ID="lblAddition" runat="server"  /></td>

                          <td>發送運輸單:</td>
                          <td>
                              <asp:Label ID="lblTRANS_USER_ID" runat="server" /></td>
                          <td>受付員:</td>
                          <td>
                              <asp:Label ID="lblRECEIVE_USER_ID" runat="server"  /></td>
                          <td>登錄員:</td>
                          <td>
                              <asp:Label ID="lblCREATE_USER_ID" runat="server"  /></td>
                      </tr>
                      
                      <tr>
                          <td colspan="2" style="text-align: center; font-weight: bold;background-color:aqua">到著處理</td>
                          <td colspan="2" style="text-align: center; font-weight: bold;background-color:aqua">配送處理</td>
                          <td colspan="2" style="text-align: center; font-weight: bold;background-color:aqua">配達處理</td>
                          <td colspan="2" style="text-align: center; font-weight: bold;background-color:aqua">存庫處理</td>
                          
                      </tr>
                      <tr>
                          <td>點貨人員  :</td>
                          <td>
                              <asp:Label ID="lblCheckUSER_ID" runat="server" /><asp:Label ID="lblCheckUSER_NAME" runat="server" /></td>

                          <td>攜出人員 :</td>
                          <td>
                              <asp:Label ID="lblDRIVER_Distr" runat="server"  /><asp:Label ID="lblDRIVER_Distr_NAME" runat="server" /></td>
                          <td>駕駛員  :</td>
                          <td>
                              <asp:Label ID="lblDRIVER_REACH" runat="server" /><asp:Label ID="lblDRIVER_REACH_NAME" runat="server" /></td>
                          <td>駕駛員  :</td>
                          <td>
                              <asp:Label ID="lblDRIVER_STOCK" runat="server"  /><asp:Label ID="lblDRIVER_STOCK_NAME" runat="server" /></td>
                      </tr>
                      <tr>
                          <td>點卸件數  :</td>
                          <td>
                              <asp:Label ID="lblCheck_COUNT" runat="server" /></td>

                          <td><asp:Label ID="Label1" runat="server" /></td>
                          <td></td>
                          <td></td>
                          <td></td>
                          <td></td>
                          <td></td>
                      </tr>
                      <tr>
                          <td>破損件數  :</td>
                          <td>
                              <asp:Label ID="lblBroken_COUNT" runat="server"  /></td>

                          <td>件數 :</td>
                          <td>
                              <asp:Label ID="lblDISTR_COUNT" runat="server"  /></td>
                          <td>件數  :</td>
                          <td>
                              <asp:Label ID="lblREACH_COUNT" runat="server" /></td>
                          <td>件數  :</td>
                          <td>
                              <asp:Label ID="lbl_DAMAGE_COUNT_3" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>點貨日期  :</td>
                          <td>
                              <asp:Label ID="lblCheck_date" runat="server"  /></td>

                          <td>攜出日期 :</td>
                          <td>
                              <asp:Label ID="lblDISTR_DATE" runat="server"  /></td>
                          <td>銷卡日期  :</td>
                          <td>
                              <asp:Label ID="lblREACH_DATE" runat="server" /></td>
                          <td>存庫日期  :</td>
                          <td>
                              <asp:Label ID="lblSTOCK_DATE" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td>點貨時間  :</td>
                          <td>
                              <asp:Label ID="lblCheck_time" runat="server"  /></td>

                          <td>攜出時間 :</td>
                          <td>
                              <asp:Label ID="lblDISTR_TIME" runat="server"  /></td>
                          <td>銷卡時間  :</td>
                          <td>
                              <asp:Label ID="lblREACH_TIME" runat="server" /></td>
                          <td>存庫時間  :</td>
                          <td>
                              <asp:Label ID="lblSTOCK_TIME" runat="server"  /></td>
                      </tr>
                      <tr>
                          
                              <td>地址  :</td>
                          <td colspan="7">
                              <asp:Label ID="lblADDRESS" runat="server"  /></td>
                         
                      </tr>
                      <tr>
                              <td>原因  :</td>
                          <td colspan="7">
                              <asp:Label ID="lblREASON" runat="server"  /></td>
                         
                      </tr>
                      </table>
                  <table class="GridTable">
                      <tr>
                          <th colspan="8">更正明細資料 </th>
                      </tr>
                      <tr>
                          <td colspan="8">
                              <%--<input id="btnShowPopup" type="button" onclick="showModalPopupViaClient();" value="查詢路線誤卸積卸刷碼" />--%> 
                              <asp:Button ID="btnBack" runat="server" Text="回最新狀況" OnClientClick="getORGDETAIL('1');return false;" />
                              <asp:Button ID="btnShowPopup" runat="server" Text="查詢路線誤卸積卸刷碼" OnClientClick="showModalPopupViaClient()" />
                              <asp:Button ID="btnORG" runat="server" Text="原託運單" OnClientClick="getORGDETAIL('2');return false;" />
                              
                          </td>
                      </tr>
                      <tr>
                          <td colspan="8">
                             <div style="height: 200px;" onclick='GridEventHandler(event,this.id);selectedEvent(event,this.id)' class="Document" id="Document"></div>
                                    <%--換頁區塊--%>
                                <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
                                    <div class="GridTableFooter"  id="DocumentPageControl" detl="False" GridWidth="10%,10%,10%,15%,15%,20%,20%" hidecolumn=""  textalign="C,C,C,C,C,C,C" >
               
                                            <div id="DocumentdivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                                                <span>&nbsp;第&nbsp;</span>
                                                <select id="DocumentdrpPage">
                                        </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="DocumenttxtPage"></span>

                                            <input type="button" id="DocumentbtnFirst" value="第一頁" class="btn_First" />
                                        <input type="button" id="DocumentbtnPrev" value="上一頁" class="btn_Prepage" />
                                        <span id="DocumentPages"></span>
                                        <input type="button" id="DocumentbtnNext" value="下一頁" class="btn_Nextpage" />
                                        <input type="button" id="DocumentbtnLast" value="最後頁" class="btn_Last" name="Last" />
                                        &#160;<label style="display:none" id="lblGO_TO1">Go to</label>&#160;<input type="text" style="display:none" id="DocumentPageIndex" class="width_4" maxlength="4" value="" />
                                        <input style="display:none" type="button" id="DocumentbtnGoto" value="GO" class="btn_Go" name="Go" />
                                            <span>&nbsp;總筆數：&nbsp;</span>  <span id="DocumenttxtPageCount"></span>
                                            </div>
                
                                    </div>
                                </div>
                            
                              
                          </td>
                      </tr>
                      
                  </table>
                   <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
                                BackgroundCssClass="modalBackground" 
                                TargetControlID="btnShowPopup" 
                                PopupControlID="panEdit"
                                 CancelControlID="btnClose" 
                                PopupDragHandleControlID="panDrag" >

                   </ajaxToolkit:ModalPopupExtender>
 
           <%-- 強制回應彈出式方塊（ModalPopup）的容器 --%>
           <asp:Panel ID="panEdit" runat="server" CssClass="cssModalPopup" Style="display: none; overflow:scroll; height:350px; width:80%;">
                    <%-- 強制回應彈出式方塊可拖曳的地方 --%>
                    <asp:Panel ID="panDrag" runat="server" CssClass="cssDragHandler">
                        <table class="DetailTable">
                            <tr>
                                <th colspan="6">誤卸貨件積出刷碼查詢 </th>
                            </tr>
                            <tr>
                                <td colspan="6">
                                    <asp:Button ID="btnClose" runat="server" Text="離開" OnClientClick= "hideModalPopupViaClient(); return false;" />
                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="width:15%">更正單號:</td>
                                <td style="width:20%"><asp:TextBox ID="txtCORRECTION_NO" Style="border-style: none;" readonly="true" runat="server"></asp:TextBox></td>
                                <td style="width:15%">託運單號:</td>
                                <td style="width:20%"><asp:TextBox ID="txtSHIPPING_NO_1" Style="border-style: none;" readonly="true"   runat="server"></asp:TextBox></td>
                                <td style="width:10%">到著站:</td>
                                <td style="width:20%"><asp:TextBox ID="txtRECEIVED_DEPT_1" Style="border-style: none;" readonly="true"  runat="server"></asp:TextBox></td>
                            </tr>
                      
                      
                            <tr>
                                <td colspan="6">
                                        <div style="height: 200px;"  ondblclick="" class="mislanded" id="mislanded"></div>
                                        <%--換頁區塊--%>
                                    <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
                                        <div class="GridTableFooter" id="mislandedPageControl" detl="False" hidecolumn="" GridWidth="10%,10%,10%,10%,10%,10%,15%,10%,10%,5%" textalign="C,C,C,C,C,C,C,C,C,C" >
               
                                                <div id="mislandeddivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                                                    <span>&nbsp;第&nbsp;</span>
                                                    <select id="mislandeddrpPage">
                                            </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="mislandedtxtPage"></span>

                                                <input type="button" id="mislandedbtnFirst" value="第一頁" class="btn_First" />
                                            <input type="button" id="mislandedbtnprev" value="上一頁" class="btn_Prepage" />
                                            <span id="Span5"></span>
                                            <input type="button" id="mislandedbtnNext" value="下一頁" class="btn_Nextpage" />
                                            <input type="button" id="mislandedbtnLast" value="最後頁" class="btn_Last" name="Last" />
                                            &#160;<label style="display:none" id="Label4">Go to</label>&#160;<input type="text" style="display:none" id="mislandedPageIndex" class="width_4" maxlength="4" value="" />
                                            <input style="display:none" type="button" id="mislandedbtnGoto" value="GO" class="btn_Go" name="Go" />
                                                <span>&nbsp;總筆數：&nbsp;</span>  <span id="mislandedtxtPageCount"></span>
                                                </div>
                
                                        </div>
  
                                </div> 
                              
                          </td>
                      </tr>
                      
                  </table>
                          
                    </asp:Panel>
            </asp:Panel>
              </ContentTemplate>
          </ajaxToolkit:TabPanel>

          <ajaxToolkit:TabPanel runat="server" HeaderText="查詢或傳真簽收單" ID="TabPanel6" TabIndex="0">
              <ContentTemplate>
                  <table class="ConditionTable">
                      <tr>
                          <th colspan="3">簽收單 </th>
                      </tr>
                      
                      <tr>
                          <td>託運單號: <asp:Label ID="lblSHIPPING_NO_2" runat="server" /></td>
                         
                          <td>託運人:<asp:Label ID="lblSHIPPER_2" runat="server"/></td>
                          <td >收貨人: <asp:Label ID="lblRECEIVER_2" runat="server"  /></td>
                    
                      <tr>
 
                          <td>收件人:<asp:TextBox ID="txtAddressee" runat="server"  /></td>
                          
                          <%--<td>傳真機號碼:<asp:TextBox ID="txtFAX_NO" runat="server" />
                              <asp:Button ID="btnFax" runat="server" CausesValidation="false" CssClass="btn_opration" Text="傳真" />
                          </td>--%>
                           <td colspan="2">客戶信箱:<asp:TextBox ID="txtEMAIL" Width="60%" runat="server"></asp:TextBox>
                              <asp:Button ID="btnSEND" runat="server" CausesValidation="false" CssClass="btn_opration" Text="寄信" OnClientClick="return send();" OnClick="btnSEND_Click"/>
                               <%--<input id="Button1" type="button" onclick="sendmail();" value="寄信" />--%>

                            </td>
                          
                      </tr>
                      <%--<tr>
                          <td>登錄日期 :<asp:Label ID="lblLOGDATE" runat="server"  /></td>
                          

                          <td colspan="2">登錄人員:<asp:Label ID="lblLOGUSER" runat="server" /></td>
                          
                      </tr>--%>
                     
                      <tr>
                          <td colspan="3" >
                              <asp:Image ID="Image1" runat="server" />
                              <asp:HiddenField ID="hidImage_URL" runat="server" />
                              <%--<asp:Literal ID="ltImage" runat="server"><img src="data:image/jpg;base64,{0}" width="800" alt="" /></asp:Literal>--%>
                          </td>
                      </tr>

                  </table>
              </ContentTemplate>
          </ajaxToolkit:TabPanel>
          <ajaxToolkit:TabPanel runat="server" HeaderText="路線貨件處理查詢" ID="TabPanel7" TabIndex="0">
              <ContentTemplate>
                  <table>
                      <tr>
                          <th style="background-color: #d1f5d6" colspan="6">路線貨件處理查詢 </th>
                      </tr>
                      <tr style="background-color: #ffffff">
                          <td style="width:10%">託運單號:</td>
                          <td style="width:30%"><asp:Label ID="lblSHIPPING_NO_3" runat="server" /></td>
                          <td style="width:10%">銷卡:</td>
                          <td style="width:20%"><asp:Label ID="lblCANCEL_3" runat="server"  /></td>
                          <td style="width:10%">存庫:</td>
                          <td style="width:20%"><asp:Label ID="lblSTOCK_3" runat="server"  /></td>
                      </tr>
                      <tr>
                          <td colspan="6">
                                <div style="height: 360px;" class="Tracking" id="Tracking"></div>
                                    <%--換頁區塊--%>
                                <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
                                    <div class="GridTableFooter"  id="TrackingPageControl"  detl="False" GridWidth="10%,10%,10%,15%,15%,20%,20%" hidecolumn=""  textalign="C,C,C,C,C,C,C" >
               
                                            <div id="TrackingdivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                                                <span>&nbsp;第&nbsp;</span>
                                                <select id="TrackingdrpPage">
                                        </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="TrackingtxtPage"></span>

                                            <input type="button" id="TrackingbtnFirst" value="第一頁" class="btn_First" />
                                        <input type="button" id="TrackingbtnPrev" value="上一頁" class="btn_Prepage" />
                                        <span id="TrackingPages"></span>
                                        <input type="button" id="TrackingbtnNext" value="下一頁" class="btn_Nextpage" />
                                        <input type="button" id="TrackingbtnLast" value="最後頁" class="btn_Last" name="Last" />
                                        &#160;<label style="display:none" id="lblGO_TO2">Go to</label>&#160;<input type="text" style="display:none" id="TrackingPageIndex" class="width_4" maxlength="4" value="" />
                                        <input style="display:none" type="button" id="TrackingbtnGoto" value="GO" class="btn_Go" name="Go" />
                                            <span>&nbsp;總筆數：&nbsp;</span>  <span id="TrackingtxtPageCount"></span>
                                            </div>
                
                                    </div>
                                </div>
                                     
                          </td>
                      </tr>

                  </table>
                  
                 
              </ContentTemplate>
          </ajaxToolkit:TabPanel>
          <ajaxToolkit:TabPanel runat="server" HeaderText="照會單查詢" ID="TabPanel1" TabIndex="0">
              <ContentTemplate>
                  <table>
                      <tr>
                          <th style="background-color: #d1f5d6" colspan="6">照會單查詢 </th>
                      </tr>
                      <tr style="background-color: #ffffff">
                          <td style="width:10%">託運單號:</td>
                          <td style="width:90%"><asp:Label ID="lblSHIPPING_NO_4" runat="server" /></td>
                          
                      </tr>
                      <tr>
                          <td colspan="2">
                                <div style="height: 330px;" onclick='GridEventHandler(event,this.id);selectedchecking(event,this.id);' class="Checking" id="Checking"></div>
                                    <%--換頁區塊--%>
                                <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
                                    <div class="GridTableFooter"  id="CheckingPageControl" detl="False" GridWidth="15%,15%,15%,15%,30%,10%" hidecolumn=""  textalign="C,C,C,C,C,C" >
               
                                            <div id="CheckingdivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                                                <span>&nbsp;第&nbsp;</span>
                                                <select id="CheckingdrpPage">
                                        </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="CheckingtxtPage"></span>

                                            <input type="button" id="CheckingbtnFirst" value="第一頁" class="btn_First" />
                                        <input type="button" id="CheckingbtnPrev" value="上一頁" class="btn_Prepage" />
                                        <span id="CheckingPages"></span>
                                        <input type="button" id="CheckingbtnNext" value="下一頁" class="btn_Nextpage" />
                                        <input type="button" id="CheckingbtnLast" value="最後頁" class="btn_Last" name="Last" />
                                        &#160;<label style="display:none" id="lblGO_TO4">Go to</label>&#160;<input type="text" style="display:none" id="CheckingPageIndex" class="width_4" maxlength="4" value="" />
                                        <input style="display:none" type="button" id="CheckingbtnGoto" value="GO" class="btn_Go" name="Go" />
                                            <span>&nbsp;總筆數：&nbsp;</span>  <span id="CheckingtxtPageCount"></span>
                                            </div>
                
                                    </div>
   
                            </div>
                                     
                          </td>
                      </tr>
                      
                  </table>
                  <div id="div_checking" style="display: none;">
                      <table  class="DetailTable">
                          <tr>
                          <th colspan="6"><asp:Label ID="Label2" runat="server" Text="照會明細"/></th>
                      </tr>
                          <tr>
                              <td>
                                  照會單號:
                              </td>
                              <td>
                                  <asp:Label ID="lblCHECKING_NO" runat="server"  />
                              </td>
                              <td>
                                  照會序號:
                              </td>
                              <td colspan="2">
                                  <asp:Label ID="lblCHECKING_SEQ" runat="server"  />
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  照會單位:
                              </td>
                              <td>
                                  <asp:Label ID="lblChecking_DEPT" runat="server"  />
                              </td>
                              <td>
                                  照會人:
                              </td>
                              <td>
                                  <asp:Label ID="lblChecking_ER" runat="server"  />
                              </td>
                              <td>
                                  照會時間:
                              </td>
                              <td>
                                  <asp:Label ID="lblChecking_TIME" runat="server"  />
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  答覆單位:
                              </td>
                              <td>
                                  <asp:Label ID="lblReply_Dept" runat="server"  />
                              </td>
                              <td>
                                  答覆人:
                              </td>
                              <td>
                                  <asp:Label ID="lblReply_ER" runat="server"  />
                              </td>
                              <td>
                                  答覆時間:
                              </td>
                              <td>
                                  <asp:Label ID="lblReply_TIME" runat="server"  /><asp:Label ID="lblReply_Flag" runat="server"  />
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  結案單位:
                              </td>
                              <td>
                                  <asp:Label ID="lblClosed_Dept" runat="server"  />
                              </td>
                              <td>
                                  結案人:
                              </td>
                              <td>
                                  <asp:Label ID="lblClosed_ER" runat="server"  />
                              </td>
                              <td>
                                  結案時間:
                              </td>
                              <td>
                                  <asp:Label ID="lblClosed_TIME" runat="server"  /><asp:Label ID="lblClosed_Flag" runat="server"  />
                              </td>
                          </tr>
                          <tr>
                              <td rowspan="2">
                                  照會原因:
                              </td>
                              <td colspan ="5">
                                  <asp:Label ID="lblChecking_REASON_1" runat="server"  /> - <asp:Label ID="lblChecking_REASON_2" runat="server"  />
                              </td>
                          </tr>
                          
                          <tr>
                              
                              <td  colspan ="2">
                                  <asp:Label ID="lblChecking_REASON" Width="100%" runat="server"  />
                              </td>
                              <td>
                                  答覆說明:
                              </td>
                              <td  colspan ="2">
                                   <asp:Label ID="lblReply_REASON"  Width="100%" runat="server"  />
                              </td>
                          </tr>
                          
                          
                          <%--<tr>
                              <td>
                                  答覆說明:
                              </td>
                              <td  colspan ="5">
                                  <asp:Label ID="lblReply_REASON"  Width="100%" runat="server"  />
                              </td>
                              
                          </tr>--%>
                          
                          <tr>
                              <td colspan="6">
                                  <table class="miniTable">
                                      <tr>
                                          <th>發送站</th>
                                          <th>到著站</th>
                                          <th>明細單</th>
                                          <th>貨號</th>
                                          <th>託運人名稱</th>
                                          <th>收貨人</th>
                                          <th>件數</th>
                                      </tr>
                                      <tr>
                                          <td style="text-align: center;"><asp:Label ID="lblDISPATCH_DEPT4" runat="server"  /></td>
                                          <td style="text-align: center;"><asp:Label ID="lblRECEIVED_DEPT4" runat="server"  /></td>
                                          <td style="text-align: center;"><asp:Label ID="lblDetail_NO4" runat="server"  /></td>
                                          <td style="text-align: center;"><asp:Label ID="lblITEM_NO4" runat="server"  /></td>
                                          <td style="text-align: center;"><asp:Label ID="lblSHIPPER4" runat="server"  /></td>
                                          <td style="text-align: center;"><asp:Label ID="lblRECEIVER4" runat="server"  /></td>
                                          <td style="text-align: center;"><asp:Label ID="lblDISTR_COUNT4" runat="server"  /></td>
                                      </tr>
                                  </table>
                              </td>
                          </tr>

                      </table>
                  </div>
                 
              </ContentTemplate>
          </ajaxToolkit:TabPanel>
      </ajaxToolkit:TabContainer>
    

 </asp:Panel>
    
   
</asp:Content>

